package com.xsmart.order;

import com.xsmart.common.config.WebConfig;
import com.xsmart.common.handle.ControllerAdviceHandler;
import com.xsmart.common.init.ServicesDiscoveryImpl;
import com.xsmart.common.services.ApiCallService;
import com.xsmart.common.services.GetApiInfoService;
import com.xsmart.common.services.LoginTokenService;
import com.xsmart.common.util.RedisUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author guojd
 */
@SpringBootApplication
@EnableTransactionManagement
@EnableDiscoveryClient
@MapperScan("com.xsmart")
@Import(value = {ControllerAdviceHandler.class, RedisUtil.class, ServicesDiscoveryImpl.class, LoginTokenService.class, ApiCallService.class, GetApiInfoService.class, WebConfig.class})
public class OrderApplication {

	public static void main(String[] args) {
		SpringApplication.run(OrderApplication.class, args);
	}
}
